<?php if ($this instanceof ClassEarlyDiscountController) { ?>
    <div class="form">


        <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'id' => 'class-early-discount-form',
            'enableAjaxValidation' => false,
                ));
        ?>

        <p class="note">
            <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
        </p>

        <?php
        echo $form->errorSummary($model);
    }
    ?>
    <div class="renderClassForm">

        <div class="rowLabel"><?php echo $form->labelEx($model, 'discount_price'); ?>  </div>

        <div class="rowLabel"><?php echo $form->labelEx($model, 'in_percentage'); ?>
        </div>

        <div class="rowLabel"><?php echo $form->labelEx($model, 'valid_to'); ?> </div>
    </div>

    <div class="renderClassFormrowControl" >
        <div class="rowControl"><?php echo $form->textField($model, 'discount_price', array('class' => 'input-medium')); ?>
            <?php echo $form->error($model, 'discount_price'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'in_percentage', array('class' => 'input-medium')); ?>
            <?php echo $form->error($model, 'in_percentage'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'valid_to', array('class' => 'input-medium')); ?>
            <?php echo $form->error($model, 'valid_to'); ?>
        </div>
<!--        <div style="clear: both;margin: 0px 0px 13px 0px;"> <a href="#" class="link-buttonadd" id="addmoreGroupDiscount_0" onclick="AddBatchEarlyBirdDiscount(this.id);">Add More Group Discount</a></div>-->
    </div>
    <?php if ($this instanceof ClassEarlyDiscountController) { ?>


        <div class="row">
            <?php
            echo GxHtml::submitButton(Yii::t('app', 'Save'));
            $this->endWidget();
            ?>
        </div>
    </div>
    <!-- form -->
<?php } ?>
